import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useDataStore = defineStore('data', () => {

  let groupList: PwdGroup[] = []
  let curPwdInfo: PwdInfo;

  function setGroupList(list: PwdGroup[]) {
    groupList = list
  }

  function getGroupList() {
    return groupList
  }

  function setCurPwdInfo(info: PwdInfo) {
    curPwdInfo = info
  }


  function getCurPwdInfo() {
    return curPwdInfo
  }
  return { setGroupList, getGroupList, groupList ,setCurPwdInfo, getCurPwdInfo}
})